
public class IfStmt2 {
	String el ;
	Statement st;
	public IfStmt2 (String el, Statement st){
		this.el = el;
		this.st = st;
	}
	public String toString(){
		String ret = "Else\n";

		String s = "";
		if (st != null) {
			s += "" + st.toString();
		}
		
		for(String st: s.split("\n")){
			if(st!= "")
				ret += "| " + st + "\n";
		}
		return ret;
	}
	public void check() throws SemanticException {
		SymbolTable table = SymbolTable.getInstance();
		if (st != null) {
			st.check();
		}
	}
}
